//
//  UIView+Frame.h
//  hcpro
//
//  Created by 戴旭 on 16/9/15.
//  Copyright © 2016年 hucai.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Frame)

@property (nonatomic) CGFloat hc_x;

@property (nonatomic) CGFloat hc_y;

@property (nonatomic) CGFloat hc_maxX;

@property (nonatomic) CGFloat hc_maxY;

@property (nonatomic) CGFloat hc_width;

@property (nonatomic) CGFloat hc_height;

@property (nonatomic) CGFloat hc_centerX;

@property (nonatomic) CGFloat hc_centerY;

/**
 * Shortcut for frame.origin
 */
@property (nonatomic) CGPoint hc_origin;

/**
 * Shortcut for frame.size
 */
@property (nonatomic) CGSize hc_size;

/**
 * Return the width in portrait or the height in landscape.
 */
@property (nonatomic, readonly) CGFloat hc_orientationWidth;

/**
 * Return the height in portrait or the width in landscape.
 */
@property (nonatomic, readonly) CGFloat hc_orientationHeight;

@end
